<!--
 * @Author: wangshuixin 2412658453@qq.com
 * @Date: 2024-05-09 04:46:55
 * @LastEditors: wangshuixin 2412658453@qq.com
 * @LastEditTime: 2024-12-27 14:32:54
 * @FilePath: /tspods/app.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<script setup lang="ts">
import  Formula  from "~/components/Formula/index.vue";
import { type ExpressionTerm } from '~/types/equation'

const appConfig = useAppConfig();

const testTerms = [
  {
    constant: [
      { text: '7' },
      { text: 'm', type: '2' }, // 整体被认为是 加2
    ],
    // type: '2'
  },
  {
    constant: [
      { text: '2' },
    ],
    type: '2'
  },
  {
    constant: [
      { text: '7' },
    ],
    type: '2'
  },
] as ExpressionTerm[]

</script> 
<template>
  <div style="width: 100vw; height: 100vh;">
    <Formula :data="testTerms" />
    =
    <Formula :data="calculateExpression(testTerms)" />
  </div>
</template>
